package com.example.courseselection;

public class TestCourseSelection {
	    public static void main(String[] args) {
	        // 1. 创建教师对象
	        Teacher t1 = new Teacher("T001", "索隆", "男");
	        Teacher t2 = new Teacher("T002", "山治", "女");

	        // 2. 创建课程对象
	        Course c1 = new Course("C001", "Java程序设计", "A101", "周二上午", "T001");
	        Course c2 = new Course("C002", "数据库原理", "B202", "周四下午", "T002");

	        // 3. 教师开课
	        t1.openCourse(c1);
	        t2.openCourse(c2);

	        // 4. 创建学生对象
	        Student s1 = new Student("S001", "艾斯", "男");
	        Student s2 = new Student("S002", "萨博", "女");

	        // 5. 学生选课
	        s1.selectCourse(c1);
	        s1.selectCourse(c2);
	        s2.selectCourse(c1);

	        // 6. 学生退课
	        s1.dropCourse(c2);

	        // 7. 打印学生课表
	        s1.printCourseSchedule();
	        s2.printCourseSchedule();
	    }
		// TODO Auto-generated method stub

	}

